﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoetutuServer.WebSite.Konachan
{
    class JsonKonachan
    {
        public class Xml
        {
            /// <summary>
            /// 
            /// </summary>
            public string version { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string encoding { get; set; }
        }

        public class PostItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string actual_preview_height { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string actual_preview_width { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string author { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string change { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string created_at { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string creator_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string file_size { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string file_url { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string frames { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string frames_pending { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string frames_pending_string { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string frames_string { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string has_children { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string height { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_held { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_shown_in_index { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string jpeg_file_size { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string jpeg_height { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string jpeg_url { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string jpeg_width { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string md5 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string preview_height { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string preview_url { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string preview_width { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string rating { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string sample_file_size { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string sample_height { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string sample_url { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string sample_width { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int score { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string source { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string status { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string tags { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string width { get; set; }
        }

        public class Posts
        {
            /// <summary>
            /// 
            /// </summary>
            public string count { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string offset { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<PostItem> post { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// 
            /// </summary>
            public Xml xml { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public Posts posts { get; set; }
        }
    }
}
